home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / cnet / EditLogin.lha / EditLogin / EditLogin.doc next >
Text File  |  1995-04-28  |  5KB  |  99 lines

  1. EditLogin by Spike Dethman
  2.  
  3. Arexx mod for C-net 3.05c, allows each user to edit a customized version of
  4. their login sequence, by adding a new command "ELO".
  5.  
  6. To install:
  7.  
  8. Copy EditLogin.rexx, sys.EditLogin.rexx, EditLogin.welcome to your Pfiles:
  9.  
  10.  
  11. Create a new file called Systext:sys.welcome.default, containing the MCI lines
  12. that run "optional" login mods (usually from the end of your current ttx.welcome
  13. files.)  This will be your "default" options, seen during login by users that
  14. have not yet used the ELO command.  (You can also create tt1.welcome.default,
  15. tt2.welcome.default, etc. for your individual terminal types.)  I've included
  16. examples of the sys.welcome and sys.welcome.default files to give you an idea...
  17.  
  18. The "optional" lines are the mods that you wish your users to have the ability to
  19. disable.  Do NOT include lines for mods which MUST be run during login, or
  20. mods that should only be run ONCE EACH CALL, such as Last10Callers.
  21.  
  22.  
  23. Edit your ttx.welcome files to remove those "optional" lines, and add this one:
  24.  
  25. {#0 Pfiles:sys.EditLogin.rexx}
  26. ^-(ctrl-Q, of course...)
  27.  
  28.  
  29. Edit the Pfiles:EditLogin.welcome file to show all the login options you wish
  30. to be available.  The file's format is THREE lines for every option.  The FIRST
  31. line is the option prompt, that will be shown on the editor's main screen.  This
  32. should be 28 characters or less.  The SECOND line for the entry is a description
  33. of what the option can do for the user.  This may be as long as you want, but
  34. must be all on one line.  The THIRD line is the actual MCI command to run the
  35. option.  I suppose you could use MCI in the first or second line, but then the
  36. ELO command would look less like the EP command.  Be sure that any lines that
  37. are also in sys.welcome.default match the corresponding MCI line in this file
  38. EXACTLY- a match-up is done to find which options a user currently has turned on.
  39.  
  40. You can have as many options in this file as you wish, and I suggest you include
  41. many P-files as choices.  Again, be sure NOT to include things like Last10Callers
  42. and other modules that must be run during login, or only once per call.
  43.  
  44. BTW... I suggest that you have more options listed in your EditLogin.welcome
  45. than are listed in your ttx.welcome.default files, keeping the default files
  46. just a minimal "basic" login.
  47.  
  48.  
  49. Finally, edit bbsmenu and add this line at the end of 2; Available everywhere:
  50.         ELO, EDit LOgin | {#0 Pfiles:EditLogin.rexx}
  51.                           ^-(that durned ctrl-Q again!)
  52.  
  53. (Don't forget to RELOAD TEXT/MENU, too!)
  54.  
  55.  
  56. Copy the file ELO to Systext:Help/, so your users can HELP ELO.  You may also
  57. want to add the command and a description to your Systext:Menu/main file,
  58. so your users know it's there when they "?" at the Main> prompt.
  59.  
  60.  
  61. You're all done!
  62.  
  63.  
  64. When a user types "ELO", they will be presented with a menu to customize their
  65. individual login sequence, based on the options and commands you listed in the
  66. EditLogin.welcome file.  The editor looks and behaves very much like the EP (Edit
  67. Prefs) command in C-net. The mod will take their choices and put them into a file
  68. in their userdir called sys.welcome.  During login, sys.EditLogin.rexx looks for
  69. this file, and will execute it if found.  If there is no sys.welcome file in the
  70. user's dir, it will instead execute Systext:ttx.welcome.default to complete this
  71. login sequence.
  72.  
  73. If you should happen to delete or move any of your P-files, be sure to update
  74. the MCI commands in the EditLogin.welcome file and ttx.welcome.default.  Users
  75. with customized logins may see "Can't find: Pfiles:xxxxx" messages for the mods
  76. you moved.  To correct this, the user simply needs to enter the ELO command...
  77. the option that you moved will be shown as disabled, and they may re-enable
  78. it, if they wish-- it will then use your new MCI command.  Simply entering
  79. and exiting the ELO command is enough to remove any outdated MCI lines from
  80. their sys.welcome, though. (If, for example, you have removed a particular Pfile
  81. completely...)
  82.  
  83. Enjoy the mod... it's Free as usual.
  84.  
  85. EditLogin was written and tested on my trusty 3M A500, with C-net 3.05c, and
  86. it works great here.  Your machine might catch fire and collapse in a heap,
  87. causing massive damage to your house and all your belongings.  If this happens,
  88. I take no responsibility for any damage to your machine, data, hard drive, modem,
  89. house, or clothes... not even the ones you've stuffed under your bed.  (Of
  90. course, if it works, why not call me at The Codex BBS and fawn me with
  91. compliments about my programming expertise?  E-mail "Spike" at (404) 473-6173
  92. [This will be (770) 473 - 6173 after December 1995])
  93.  
  94. I've read too many of these Amiga disclaimers, huh?
  95.  
  96. This is FreeWare.  I give permission to distribute it through any normal
  97. public-domain means, especially CD collections, as long as outrageous fees are
  98. not charged.
  99.